package fruit;

/*
    满减
 */
public class MaxOut extends Discount {

    public MaxOut(double totalPrice) {
        super(totalPrice);
        int a = (int) totalPrice / 100;
        this.totalPrice = totalPrice - 10 * a;
    }

    @Override
    public Double price() {
        return this.totalPrice;
    }
}
